/*html{*/
/*    perspective: 800px;*/
/*}*/
.cube{
    width: 100px;
    height: 100px;
    /* background-color:#bfa; */
    margin-left: 90%;
    /* 设置3D变形 */
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateZ(45deg);
    animation: rotate 5s infinite linear;
}
.cube> div{
    width:100px;
    height:100px;
    /* 为元素设置透明效果 */
    /*opacity: 0.7;*/
    position: absolute;
}
img{
    vertical-align: top;
}
.box1{
    transform: rotateY(90deg) translateZ(50px);
}
.box2{
    transform: rotateY(-90deg) translateZ(50px);
}
.box3{
    transform: rotateX(90deg) translateZ(50px);
}
.box4{
    transform: rotateX(-90deg) translateZ(50px);
}
.box5{
    transform: rotateY(0deg) translateZ(50px);
}
.box6{
    transform: rotateY(180deg) translateZ(50px);
}
@keyframes rotate {
    from{
        transform: rotateX(0) rotateZ(0);
    }
    to{
        transform: rotateX(1turn) rotateZ(1turn);
    }
}
